package com.hspedu.springcloud.service;

import com.hspedu.springcloud.entity.Member;
import com.hspedu.springcloud.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value="MEMBER-SERVICE-PROVIDER")
public interface MemberFeignService {

    @GetMapping(value = "/member/get/{id}")
    public Result<Member> getMembertById(@PathVariable("id") Long id);

}
